<template>
    <view>
        <image v-if="startImg" :src="getStratIcon()" mode="aspectFill"
            style="width: 100%; height: 100vh; display: block"></image>
    </view>
</template>

<script>
import config from "@/config/config.js"
export default {
    data() {
        return {
            startImg: false,
        }
    },
    onLoad(e) { },
    mounted() {
        //#ifdef APP
        this.startImg = true
        setTimeout((e) => {
            uni.reLaunch({
                url: "/pages/login/loading",
            })
        }, 2000)
        //#endif
        // #ifndef APP
        uni.reLaunch({
            url: "/pages/login/loading",
        })
        // #endif
    },
    methods: {
        getStratIcon() {
            switch (config?.appSet?.shopName) {
                case '惠销客':
                    return "/static/img/strat.png"
                    break
                case '芒果红了':
                    return "/static/img/strat2.png"
                    break
                case '好点生活':
                    return "/static/img/strat3.png"
                    break
                default:
                    return "/static/img/strat4.png"
                    break
            }
        },
    },
}
</script>
<style lang="scss"></style>
